
import { createRouter, createWebHashHistory } from 'vue-router'
const routers = [
    {
        path: "/",
        component: () => import("@/views/blog/home.vue"),
        redirect:'/index',
        children: [
            {
                path: "/index",
                name: '首页',
                component: resolve => import("@/views/blog/index.vue")
             },
            {
               path: "/technology",
               name: '技术列表',
               component: resolve => import("@/views/technology/index.vue")
            },
            {
                path: "/food",
                name: '美食列表',
                component: resolve => import("@/views/food/index.vue")
             },
             {
                path: "/travel",
                name: '游记列表',
                component: resolve => import("@/views/travel/index.vue")
             },
          
             {
                path: "/person",
                name: '个人信息',
                component: resolve => import("@/views/blog/person.vue")
             },
             {
                path: "/summary",
                name: '个人总结',
                component: resolve => import("@/views/blog/summary.vue")
             },
             {
                path: "/technologyDetail/:technologyId",
                name: '技术详情',
                component: resolve => import("@/views/technology/detail/index.vue")
             },
             {
                path: "/foodDetail/:foodId",
                name: '美食详情',
                component: resolve => import("@/views/food/detail/index.vue")
             },
             {
                path: "/travelDetail/:travelId",
                name: '游记详情',
                component: resolve => import("@/views/travel/detail/index.vue")
             },
             {
              path: "/albumDetail/:albumId",
              name: '相册详情',
              component: resolve => import("@/views/album/detail/index.vue")
           },
           {
               path: "/email",
               name: '邮箱留言',
               component: resolve => import("@/views/blog/email.vue")
            },
            {
               path:"/albums",
               name:'相册列表',
               component:resolve=>import("@/views/album/index.vue")
             },
        ]
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes: routers,


})

export default router 